package com.xiaoqi.api.mapper;

import com.github.pagehelper.Page;
import com.xiaoqi.api.dto.ProjectDTO;
import com.xiaoqi.api.query.ProjectQuery;
import com.xiaoqi.api.vo.ProjectVO;
import com.xiaoqi.api.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface ProjectMapper {

    Page<ProjectVO> find(ProjectQuery projectQuery);

    void add(ProjectDTO projectDTO);

    void update(long id, ProjectDTO projectDTO);

    ProjectVO findById(long id);
}
